


def is_letter_or_underline(pos, content):
    c = content[pos:pos+1]
    #print("condition:", c)
    return c.isalpha() or c == "_"

def is_double_quote(pos, content):
    c = content[pos:pos+1]
    return c == '"'

def is_single_quote(pos, content):
    c = content[pos:pos+1]
    return c == "'"


def is_number(pos, content):
    c = content[pos:pos+1]
    return c.isdigit()

def is_line_comment(pos, content):
    return "//" == content[pos: pos+2]

def is_block_comment(pos, content):
    return "/*" == content[pos: pos+2]



def is_python_line_comment(pos, content):
    return "#" == content[pos: pos+1]

def is_python_string(pos, content):
    return "'" == content[pos: pos+1] or '"' == content[pos: pos+1]

def is_python_block_string(pos, content):
    return "'''" == content[pos: pos+3] or '"""' == content[pos: pos+3]

def is_python_f_string(pos, content):
    c = content[pos: pos+1]
    if c != 'F' and c != 'f':
        return False
    return "'''" == content[pos+1: pos+4] or '"""' == content[pos+1: pos+4]